#include "widget.h"
#include "ui_widget.h"
#include"QPushButton"
#include"QDebug"
Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    QPushButton* as=new QPushButton(this);
    as->setText("查看");
    as->move(80,80);
    connect(as,&QPushButton::clicked,this,&Widget::handle);
}

void Widget::handle()
{
    QRect aq=this->geometry();
    QRect cf=this->frameGeometry();
    qDebug()<<aq;
    qDebug()<<cf;
}

Widget::~Widget()
{
    delete ui;
}

